package com.sonix.oidbluetooth.receiver;

import android.content.BroadcastReceiver;

import android.content.Context; import android.content.Intent;

import android.util.Log;

import com.sonix.oidbluetooth.service.BeibiService;
import com.sonix.oidbluetooth.service.BluetoothLEService;

public class BootBroadcastReceiver extends BroadcastReceiver
{
    //重写onReceive方法 @Override
    public void onReceive(Context context, Intent intent)
    {
        Intent service = new Intent(context, BeibiService.class);
        context.startService(service);
        Log.v("TAG", "开机自动服务自动启动....."); //启动应用，参数为需要自动启动的应用的包名
    }

}